package com.beyondsoft.sabg.edu.repository;

import com.beyondsoft.sabg.edu.model.db.FormSetting;
import com.beyondsoft.sabg.edu.repository.core.SimpleRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FormSettingRepo  extends SimpleRepository<FormSetting> {
    @Query(value = "select * from form_setting where special_funding_id = ?1",nativeQuery = true)
    List<FormSetting> findBySpecialFundingId(Long id);

    @Query(value = "select * from form_setting where special_subsidies_batch_id = ?1",nativeQuery = true)
    List<FormSetting> findBySpecialSubsidiesBatchId(Long id);

}
